package com.idol.service.impl;

import com.idol.dao.ResumeDao;
import com.idol.pojo.Resume;
import com.idol.service.IResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Supreme_Sir
 * @version 1.0
 * @className ResumeService
 * @description
 * @date 2020/11/1 18:58
 **/
@Service
public class ResumeService implements IResumeService {
    @Autowired
    private ResumeDao resumeDao;

    @Override
    public List<Resume> findAll() {
        return resumeDao.findAll();
    }

    @Override
    public Resume insert(Resume resume) {
        return resumeDao.save(resume);
    }

    @Override
    public void delete(Resume resume) {
        resumeDao.delete(resume);
    }

    @Override
    public Resume update(Resume resume) {
        return resumeDao.save(resume);
    }
}
